package com.hulk.ratel.persistence.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.hulk.ratel.persistence.entity.SuperEntity;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author hulk
 * @since 2018-12-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_txncode")
public class Txncode extends SuperEntity {

    private static final long serialVersionUID = 1L;

    @TableField("txn_code")
    private String txnCode;

    /**
     * 11-支付
            参考聚合支付接口规范
     */
    @TableField("txn_type")
    private String txnType;

    @TableField("txn_desc")
    private String txnDesc;

    /**
     * SYNC-同步
            ASYNC-异步
     */
    @TableField("circuit_type")
    private String circuitType;

    /**
     * Y-启用
            N-关闭
     */
    @TableField("use_flag")
    private String useFlag;

    @TableField("start_date")
    private LocalDate startDate;

    @TableField("expiry_date")
    private LocalDate expiryDate;

    @TableField("created_by")
    private String createdBy;


    @TableField("audited_time")
    private LocalDateTime auditedTime;

    /**
     * N-未审核
            Y-已审核
            U-已修改
     */
    @TableField("audited_flag")
    private String auditedFlag;

    @TableField("audited_by")
    private String auditedBy;

    @TableField("updated_by")
    private String updatedBy;



    @TableField("archived_time")
    private LocalDateTime archivedTime;

    /**
     * N-未归档
            Y-已归档
     */
    @TableField("archived_flag")
    private String archivedFlag;

    @TableField("ori_id")
    private String oriId;


    @TableField("rsv1")
    private String rsv1;

    @TableField("rsv2")
    private String rsv2;


    public static final String TXN_CODE = "txn_code";

    public static final String TXN_TYPE = "txn_type";

    public static final String TXN_DESC = "txn_desc";

    public static final String CIRCUIT_TYPE = "circuit_type";

    public static final String USE_FLAG = "use_flag";

    public static final String START_DATE = "start_date";

    public static final String EXPIRY_DATE = "expiry_date";

    public static final String CREATED_BY = "created_by";



    public static final String AUDITED_TIME = "audited_time";

    public static final String AUDITED_FLAG = "audited_flag";

    public static final String AUDITED_BY = "audited_by";

    public static final String UPDATED_BY = "updated_by";



    public static final String ARCHIVED_TIME = "archived_time";

    public static final String ARCHIVED_FLAG = "archived_flag";

    public static final String ORI_ID = "ori_id";





    public static final String RSV1 = "rsv1";

    public static final String RSV2 = "rsv2";

}
